package com.shkmall.goods.service.impl;

import com.shkmall.goods.dao.SpecMapper;
import com.shkmall.goods.pojo.Spec;
import com.shkmall.goods.service.SpecService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class SpecServiceImpl implements SpecService {
    @Autowired
    private SpecMapper specMapper;
    @Override
    public List<Map> findSpecByCategory(String categoryName) {
      List<Map> data = specMapper.findSpecByCategory(categoryName);
      return data;

    }
}
